home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / doors_1 / cdcom.zip / MAKEXRF.DOC < prev    next >
Text File  |  1992-05-08  |  35KB  |  853 lines

  1.  
  2. MAKEXRF - Ver 1.1c
  3.  
  4. Makexrf's main function is to create the cross-reference file (cdcom.xrf)
  5. that contains all the files on the cdrom disk, so that searching for
  6. a filename takes milli-seconds instead of minutes to find.  However
  7. some disks will need to have a master description file created from
  8. the available listings.  This can be created using makexrf also.
  9.  
  10. Included in the CFGFILES.ZIP file are various configuration files for
  11. cdrom disks that I have come into contact with.  Check below to see if you
  12. can find the disk you have, if not you can create your own configuration
  13. files for makexrf to use.  This is covered towards the end of this doc file.
  14.  
  15. I cannot guarantee that all of these configuration files will run
  16. flawlessly as I do not have the vast majority of these cdrom disks
  17. to test these with.  If you have problems with them give me a call
  18. so I can correct them, and help you figure out where the problem
  19. is also.  They should work just fine however, unless I overlooked
  20. something when I created them.
  21.  
  22. If you are getting ERROR 7's while running makexrf, this is a out of memory
  23. error.  See bottom of this doc file for a discussion on possible solutions.
  24.  
  25. CDROM DISK EXAMPLES/CONFIGURATION FILES & INSTRUCTIONS
  26.  
  27. ALPHA & OMEGA VOL 1 (A&OV1.ZIP)
  28. -------------------------------
  29. Un-zip the FILESBBS.ZIP in the \DIRS sub-dir on the cdrom disk into the
  30. current directory.  Un-zip the a&ov1 configuation file.  Run makexrf convert
  31. to create master file listing, then run makexrf again to create the other
  32. work files.
  33.  
  34. ex:  (cdrom drive letter e:)
  35. pkunzip e:\dirs\filesbbs
  36. pkunzip cfgfiles a&ov1.zip
  37. pkunzip a&ov1
  38. makexrf convert
  39. makexrf e:
  40.  
  41. CARRS 003 (CARRS3.ZIP)
  42. ----------------------
  43. Un-zip the FILETXT.ZIP file in the \TEXT sub-directory on the cdrom disk
  44. into the current directory.  Un-zip the carrs3 configuration file.
  45. Run MAKEXRF CONVERT to create the master description listing.  Then
  46. run makexrf again to create the other work files.
  47.  
  48. ex:  (cdrom drive letter e:)
  49. pkunzip e:\text\filetxt
  50. pkunzip cfgfiles carrs3.zip
  51. pkunzip carrs3
  52. makexrf convert
  53. makexrf e:
  54.  
  55. CARRS 003-1 (CARRS3-1.ZIP)
  56. --------------------------
  57. This disk may also be called nightowl 003-1.  Locate the DIR1 - DIR34
  58. files on the cdrom disk and copy them over to the current directory.
  59. Un-zip the carrs3-1 configuration file, then run makexrf convert
  60. to create the master description listing.  Then run makexrf again to
  61. create the other work files.
  62.  
  63. ex:  (cdrom drive letter e:)
  64. copy e:dir*   (ie: copy above DIR filenames into current directory)
  65. pkunzip cfgfiles carrs3-1.zip
  66. pkunzip carrs3-1
  67. makexrf convert
  68. makexrf e:
  69.  
  70. GIGABYTE (GIGABYTE.ZIP)
  71. -----------------------
  72. This disk exactly matches the first release of nightowl 004 (nowl4#1).
  73. At any rate locate the DIR1 - DIR28 description files and copy them
  74. from the cdrom disk to the current directory.  Unzip the gigabyte
  75. configuration file, then run makexrf convert to convert them.  Once this
  76. is done run makexrf to create cdcom.xrf and the other work files.
  77.  
  78. ex:  (cdrom drive letter e:)
  79. copy e:dir*   (ie: copy above DIR filenames into current directory)
  80. pkunzip cfgfiles gigabyte.zip
  81. pkunzip gigabyte
  82. makexrf convert
  83. makexrf e:
  84.  
  85. GIGABYTE GOLD (GIGAGOLD.ZIP)
  86. ----------------------------
  87. This disk came out in early 1992.  You won't need the GIG00 from the cdrom
  88. disk so delete it after copying over the GIG* from the indexes directory.
  89. I included a edited version called GIG100 in gigagold.zip.
  90.  
  91. ex:  (cdrom drive letter e:)
  92. copy e:\indexes\gig*
  93. del gig00
  94. pkunzip cfgfiles gigagold.zip
  95. pkunzip gigagold
  96. makexrf convert
  97. makexrf e:
  98.  
  99. HALL OF FAME VOL 1 (HOFV1.ZIP)
  100. ------------------------------
  101. Copy all of the .bbs files from the \1 sub-dir on the cdrom disk
  102. into the current directory.  Un-zip the hofv1 configuration file.
  103. Run makexrf convert to create master file listing, then run makexrf
  104. again to create other cdcom work files.
  105.  
  106. ex:  (cdrom drive letter e:)
  107. copy e:\1\*.bbs
  108. pkunzip cfgfiles hofv1.zip
  109. pkunzip hofv1
  110. makexrf convert
  111. makexrf e:
  112.  
  113. NIGHTOWL 004 #1 AND #2 (NOWL4#1.ZIP AND NOWL4#2.ZIP)
  114. ----------------------------------------------------
  115. These disks may also go by the CARRS label.  There are two 004 disks.
  116. The #1 disks DIR files are dated 4-28-91, and the #2 disks DIR files
  117. are dated 7-15-91.  Once you figure this out, copy the DIR1 - DIR28 files
  118. into the current directory.  Unzip either the nowl4#1 or nowl4#2 depending
  119. on which disk you have.  Then run makexrf convert to create the description
  120. listing.  Once this is done run makexrf again to create cdcom.xrf and the
  121. other work files.
  122.  
  123. NIGHTOWL 004-1 (NOWL4-1.ZIP)
  124. ----------------------------
  125. This disk may also go by the CARRS label.  Copy the DIR1 - DIR31 files
  126. into the current directory.  Unzip the nowl4-1 configuration file.
  127. Then run makexrf convert to create the description listing.  Once this
  128. is done run makexrf again to create cdcom.xrf and the other work files.
  129.  
  130. ex:  (cdrom drive letter e:)
  131. copy e:dir*   (ie: copy above DIR filenames into current directory)
  132. pkunzip cfgfiles nowl4-1.zip
  133. pkunzip nowl4-1
  134. makexrf convert
  135. makexrf e:
  136.  
  137. NIGHTOWL 004-2 (NOWL4-2.ZIP)
  138. ----------------------------
  139. Follow same steps as above
  140.  
  141. NIGHTOWL 005 (NOWL5.ZIP)
  142. ------------------------
  143. copy e:\text\dir*  (copy dir1 - dir58 to current directory)
  144. pkunzip cfgfiles nowl5.zip
  145. pkunzip nowl5
  146. makexrf convert
  147. makexrf e:
  148.  
  149. NIGHTOWL 006 (NOWL6.ZIP)
  150. ------------------------
  151. copy e:\text\dir*  (copy dir1 - dir51 to current directory)
  152. pkunzip cfgfiles nowl6.zip
  153. pkunzip nowl6
  154. makexrf convert
  155. makexrf e:
  156.  
  157. Programmers Rom QB-1011 (PRGMROM.ZIP)
  158. -------------------------------------
  159. You will need to convert the _ROM.CAT file to a format that makexrf can
  160. use.  The program convert.bas has been included to do this task.  It will
  161. work under dos 5.00 qbasic.exe program.  If you do not have access to this
  162. program, contact me and I will give you a compiled convert.bas to do the job.
  163.  
  164. Copy the _ROM.CAT from the cdrom root directory.  Un-zip the prgmrom.zip
  165. configuration file.  Then load convert.bas into qbasic by typing qbasic convert,
  166. then press the F5 key to run it.  It will create the files that makexrf can read.
  167. Then run makexrf convert to create the master description listing.  After this
  168. is done run makexrf again to create the other work files.
  169.  
  170. ex:  (cdrom drive letter e:)
  171. copy e:\_rom.cat
  172. pkunzip cfgfiles prgmrom.zip
  173. pkunzip prgmrom
  174. qbasic convert  (press F5 once loaded to run it)
  175. makexrf convert
  176. makexrf e:
  177.  
  178. Rbbs-In-A-Box Vol 1, #1 (RBBSV1N1.ZIP)
  179. --------------------------------------
  180. Copy the cdmaster.dir from the \RBBS directory on the cdrom
  181. disk to the current directory.  Un-zip rbbsv1n1 configuration
  182. file, then run MAKEXRF PTR to create the pointer file for the descriptions,
  183. then run makexrf again to create the .xrf and other work files.
  184.  
  185. ex:  (cdrom drive letter e:)
  186. copy e:\rbbs\cdmaster.dir
  187. pkunzip cfgfiles rbbsv1n1.zip
  188. pkunzip rbbsv1n1
  189. makexrf ptr
  190. makexrf e:
  191.  
  192. Rbbs-In-A-Box Vol 1, #2 (RBBSV1N2.ZIP)
  193. --------------------------------------
  194. Copy the cdmaster.alp from the \RBBS directory on the cdrom
  195. disk to the current directory.  Un-zip rbbsv1n2 configuration
  196. file, then run MAKEXRF PTR to create the pointer file for the descriptions,
  197. then run makexrf again to create the .xrf and other work files.
  198.  
  199. ex:  (cdrom drive letter e:)
  200. copy e:\rbbs\cdmaster.alp
  201. pkunzip cfgfiles rbbsv1n2.zip
  202. pkunzip rbbsv1n2
  203. makexrf ptr
  204. makexrf e:
  205.  
  206. Rbbs-In-A-Box Vol 3, #1 & Vol 3.1, #1 (RBBSV3N1.ZIP)
  207. ----------------------------------------------------
  208. For the Vol 3, #1 disks things are a little different.  One of them has
  209. only 1 file in the \SWAL directory, this is the first disk.  The second
  210. disk has all these files.  So for these disks just copy over the
  211. cdmaster.alp file from the \RBBS directory on the cdrom disk to the
  212. current directory.  Un-zip the rbbsv3n1 configuration file, then
  213. run makexrf ptr to create the pointer file for the descriptions, then
  214. run makexrf again to create the other work files.
  215.  
  216. ex:  (cdrom drive letter e:)
  217. copy e:\rbbs\cdmaster.alp
  218. pkunzip cfgfiles rbbsv3n1.zip
  219. pkunzip rbbsv3n1
  220. makexrf ptr
  221. makexrf e:
  222.  
  223. Vol 3.1, #1 does not have a cdmaster.alp file in the \RBBS directory so
  224. makexrf will have to sort the cdmaster.dir file so that is can use it.
  225. Copy the cdmaster.dir file from the \RBBS sub-directory on the cdrom disk
  226. to the current directory, un-zip the rbbsv3n1 configuration file, then run
  227. MAKEXRF DSORT to sort the descriptions (it will also create the pointer
  228. file).  Then run makexrf again to create the other work files.
  229.  
  230. ex:  (cdrom drive letter e:)
  231. copy e:\rbbs\cdmaster.dir
  232. pkunzip cfgfiles rbbsv3n1.zip
  233. pkunzip rbbsv3n1
  234. makexrf dsort
  235. makexrf e:
  236.  
  237. ROM1 (ROM1.ZIP)
  238. ---------------
  239. Unzip the ROM-1V09.ZIP file that came on the floppy disk into
  240. the current directory.  Then unzip the rom1 configuration file.
  241. Run makexrf convert to create the description listing.  Once this
  242. is successful, run makexrf to create the cdcom.xrf and other
  243. work files.
  244.  
  245. ex:  (cdrom drive letter e:)
  246. pkunzip a:\rom-1v09
  247. pkunzip cfgfiles rom1.zip
  248. pkunzip rom1
  249. makexrf convert
  250. makexrf e:
  251.  
  252. ROM2 (ROM2.ZIP)
  253. ---------------
  254. Unzip the ROM2V10.ZIP file that came on the floppy disk into
  255. the current directory.  Then unzip the rom2 configuration file.
  256. Run makexrf convert to create the description listing.  Once this
  257. is successful, run makexrf to create the cdcom.xrf and other
  258. work files.
  259.  
  260. ex:  (cdrom drive letter e:)
  261. pkunzip a:\rom2v10
  262. pkunzip cfgfiles rom2.zip
  263. pkunzip rom2
  264. makexrf convert
  265. makexrf e:
  266.  
  267. Shareware Carousel (CAROUSEL.ZIP)
  268. ---------------------------------
  269. This disk only has IBM, MacIntosh and C-64 files on it.  It also
  270. has no version number on the disk.  You will need to copy the filenames
  271. that are in the sharecat.lst file in carousel.zip over from the cdrom disk
  272. (35 total).  I do not know exactly where they are located, I imagine it is
  273. one file per directory however (I don't have this disk, just these files).
  274.  
  275. These descriptions will need to be converted before makexrf can use them.
  276. The program convert.bas has been included to do this task.  It will work
  277. under dos 5.00 qbasic.exe program.  If you do not have access to this
  278. program, contact me and I will give you a compiled convert.bas to do the job.
  279.  
  280. Then load convert.bas into qbasic by typing qbasic convert, then
  281. press the F5 key to run it.  It will create the files that makexrf
  282. can read.  Then unzip the carousel configuration file, then run
  283. makexrf convert to create the master description listing.  After this
  284. is done run makexrf again to create the other work files.
  285.  
  286. ex:  (cdrom drive letter e:)
  287. pkunzip cfgfiles carousel.zip
  288. pkunzip carousel
  289. copy e:\*.cat  (copy the cat files (from sharecat.lst) into current directory)
  290. qbasic convert  (press F5 once loaded to run it)
  291. makexrf convert
  292. makexrf e:
  293.  
  294. Shareware Carousel Vol. 2, #1  (CAROV2N1.ZIP)
  295. ---------------------------------------------
  296. The descriptions on the cdrom disk will need to be converted before
  297. makexrf can use them.  The program convert.bas has been included to
  298. do this task.  It will work under dos 5.00 qbasic.exe program.  If
  299. you do not have access to this program, contact me and I will give
  300. you a compiled convert.bas to do the job.
  301.  
  302. You will need to copy the following files from the cdrom disk to the
  303. current directory.  I think they are all in the root directory.
  304.  
  305. filename         size   date     time
  306. AMIGA.CAT       40532 08-20-90   7:59p
  307. ATARI.CAT       41554 08-20-90  12:19p
  308. COMDORE.CAT     97334 08-21-90   8:14p
  309. GRAPHIC.CAT     90460 07-12-90  11:42a
  310. MACTOSH.CAT    178513 08-21-90   1:59p
  311. MASTER.CAT     973174 08-13-90   2:15p
  312. MEAN_18.CAT     19535 08-20-90   4:18p
  313.  
  314. Then load convert.bas into qbasic by typing qbasic convert, then
  315. press the F5 key to run it.  It will create the files that makexrf
  316. can read.  Then unzip the carov2n1 configuration file, then run
  317. makexrf convert to create the master description listing.  After this
  318. is done run makexrf again to create the other work files.
  319.  
  320. ex:  (cdrom drive letter e:)
  321. copy e:\*.cat  (ie: copy the above cat files into current directory)
  322. pkunzip cfgfiles carov2n1.zip
  323. pkunzip carov2n1
  324. qbasic convert  (press F5 once loaded to run it)
  325. makexrf convert
  326. makexrf e:
  327.  
  328. ----------------------------------------------------------------------------
  329.  
  330. SOME OTHER OPTIONS
  331. ------------------
  332. Makexrf by default when you run it against your cdrom drive letter (ie:
  333. makexrf e:) will by default find every directory then enter every file
  334. off the cdrom disk into cdcom.xrf so that all files will be accessible.
  335. This may or may not be acceptable to you, the case being perhaps some
  336. graphics files you don't want your users to access.  The descriptions can
  337. be blocked easily enough by not entering the description filename in the
  338. makexrf.cfg file so that makexrf will not read it on the convert function
  339. (see below for more information).  To tell makexrf not to read these files
  340. into cdcom.xrf create the file MAKEXRF.PTH.  The paths that are listed in
  341. this file will be skipped over when it is reading the cdrom disk.  The
  342. configuration for these files is covered at the end of this doc file.
  343.  
  344. ----------------------------------------------------------------------------
  345.  
  346. IF YOUR CDROM DISK IS NOT LISTED ABOVE
  347. --------------------------------------
  348.  
  349. NOTE:  The following information may seem quite confusing at first.
  350. I tried my best to explain it, but it still might not make sense at
  351. first.  Look at the examples in CFGFILES.ZIP as this should help make sense
  352. of all this.  This really isn't that hard to do, just a few things to keep
  353. track of.
  354.  
  355. The Basic Steps to Follow Are:
  356.  
  357. 1) Determine whether or not you need to have a description file created
  358. or not.  If so, you will need to create a proper makexrf.cfg so that
  359. makexrf can create this listing.  Most disks do not have the proper listing
  360. that cdcom uses.
  361.  
  362. 2) Once the description file has been converted or dealt with, then
  363. you need to create the file index (cdcom.xrf) for the door.  This is
  364. done by running
  365.  
  366. makexrf drive:
  367.  
  368. where drive: is your cdrom drive letter (ex: makexrf e:).  If you simply
  369. type makexrf it will prompt you for your cdrom drive letter and also
  370. create the xrf file.  If you are having memory problems with the sort,
  371. you can remove the cdrom drivers at that point and re-attempt the sort
  372. by running makexrf dsort.  See end of docs for more details.
  373.  
  374. 3) Create the cdcom.cat file, and locate or create any file category
  375. menus that will be needed.
  376.  
  377. 4) Once these steps are completed I strongly recommend backing the
  378. converted description file (if you had to do so) and its pointer file
  379. (.ptr), cdcom.xrf, cdcom.pth, cdcom.cat and category.*  to a floppy in case
  380. something happens.  This way you do not have to go thru the entire
  381. configuration process again.
  382.  
  383. Thats basically all there is to it.
  384.  
  385. Now for the details.
  386.  
  387. The following files will have to be created by you for the door to work:
  388.  
  389. MAKEXRF.CFG        - Makexrf configuration file
  390. CDCOM.CAT          - Defines file categories for cdrom disk
  391. CDCOM.DEF          - Set up file for CdCom (see cdcom.doc)
  392. CATEGORY.BBS/.SCR  - Category menu (.bbs = ascii, .scr = ansi)
  393. MAKEXRF.PTH        - Paths to exclude from cdcom.pth/.xrf (see end of docs)
  394.  
  395. Makexrf in turn will create
  396.  
  397. CDCOM.PTH          - Contains all paths on cdrom disk
  398. CDCOM.XRF          - Cross-reference listing of all files on cdrom disk
  399. CDDISK.RPT         - A "report" of the cdrom disk
  400. MAKEXRF.DAT        - Contains data needed for cdcom.def line 15
  401. DESCFILE.PTR       - Pointer file for description file
  402. DESCFILE.TXT       - Description file built from files.bbs type listings
  403.                      or supplied by you already
  404.  
  405. FILE DESCRIPTIONS
  406.  
  407. The description file that cdcom uses is a single file with all descriptions
  408. in it.  Makexrf is capable of making this listing from available files
  409. listings.  This listings must be separate listings by file category.
  410.  
  411. CdCom uses the following format for description listings.
  412.  
  413. single line description:
  414.  
  415. filename      filesize filedate     description                 category code
  416. 16550.ZIP       4197  07-27-88  Set fifo buffer on 16550 UART             001
  417.  
  418.  
  419. multi-line description:
  420.  
  421. filename      filesize filedate     descriptions                category code
  422. AP102.ZIP      76146  04-15-91  Telix script auto-starts Puma and Bimodem 001
  423.                               | Downloads, exits Telix if left unattended,001
  424.                               | other features                            001
  425.  
  426. The | signifies multiline description to makexrf.  multi-line descriptions
  427. cannot be recognized without it (even with the multi-line toggle set
  428. to 1).  The | does not have to be in column 32 exactly initially, however
  429. makexrf will move it to that location when it re-writes it (this is
  430. following the pcboard format, at least the last time I checked it was).
  431. If you don't want it to put it in column 32, then create the file
  432. PCBL.DAT in the same directory as makexrf.  When you run the makexrf convert
  433. function it will read this value and use it instead of the default of 32.
  434. This file simply has one line in it, and this is the number you want it
  435. to use instead of 32.
  436.  
  437. This is not a fixed format for descriptions.  The only thing that matters
  438. for the initial conversion is that all filenames must be all the way at the
  439. left. If makexrf encounters a space or any other invalid filename character
  440. in the leftmost column it will strip this line out.  This is why it is
  441. important to use the | character for multi-line descriptions, without it
  442. makexrf has no way of knowing whether it is just part of a filename header or
  443. something else not needed in the master file.  Most headers will be stripped
  444. out unless they are left justified and begin with a valid filename character.
  445. Blank lines will also be stripped out.
  446.  
  447. The location of the filesize, date, description, etc is not critical, and
  448. any of these can be omitted.  The only thing needed is the filename.
  449. The filename however should not contain any spaces.  It will not affect
  450. the operation of the description conversion, however the cddisk.rpt
  451. will contain all of the filenames that have spaces in them. The filename
  452. should be FILENAME.EXT not FILENAME EXT or FILE     EXT if you want
  453. it to function correctly (FILE.EXT is acceptable for the last example, but
  454. FILE EXT is not).
  455.  
  456. Makexrf will add the category code based on its location in the makexrf.cfg
  457. file (see makexrf.cfg explanation below).  Category codes DO NOT have to be
  458. in the initial listings, in fact I recommend stripping any out that may
  459. already be in them if they do in fact contain such codes (unless they are
  460. really needed) since makexrf will add its own code that cdcom uses.  I just
  461. showed them here so you would know where it puts them.  The rbbs-in-a-box
  462. disks already have this category code in their description file.  The
  463. category code must be 3 characters and numeric with padded 0's.  Text
  464. category codes will not work.
  465.  
  466. Here is the format for the makexrf.cfg file (the line#> is just for
  467. reference, do not put this in the makexrf.cfg file):
  468.  
  469. 1> cdrom.cat   ;description filename
  470. 2> 1           ;multiline descriptions=1, single line = 0
  471. 3> 0           ;set at 1 only for riab disks (read desc file backwards)
  472. 4> 0           ;# of words to strip out of category descriptions
  473. 5> 31          ;# of category description files to convert
  474. DIR1
  475. DIR2
  476. DIR3
  477. DIR4
  478. DIR5
  479. ..
  480. DIR31
  481.  
  482. 1> is the output filename that will be used when writing the master
  483. description listing (in this example the output file will be called
  484. cdrom.cat).  The pointer file in this case would be named cdrom.ptr
  485. (changes the extension to .ptr for the pointer file).
  486.  
  487. 2> if the file category listings you have contain multi-line descriptions,
  488. and are using the | convention, then set this to 1.  Otherwise set it to 0.
  489.  
  490. 3> if the existing master description listing is sorted backwards, like
  491. the riab disks are, then set this to 1.  If you want your single line
  492. description listing sorted backwards you can also set this to 1 also,
  493. although I don't know why you would want to do this.  This must be set
  494. to 0 for multi-line descriptions.
  495.  
  496. 4> is the number of text lines to strip out of the category description files.
  497. Any words that are left justified and begin with a valid filename character
  498. will not be filtered out by makexrf.  For instance a header might be in
  499. the file.bbs type file like so:
  500.  
  501. Filename      Description
  502. --------      -----------
  503.  
  504. makexrf will think that Filename is a valid filename, even though it is not.
  505. So put a 1 on line 4, then under line 5 (before the category listing
  506. filenames) enter the text to strip out.  ex:
  507.  
  508. cdrom.cat   ;description filename
  509. 1           ;multiline descriptions=1, single line = 0
  510. 0           ;set at 1 only for riab disks (read desc file backwards)
  511. 1           ;# of text lines to strip out of category descriptions
  512. 31          ;# of category description files to convert
  513. Filename
  514. DIR1
  515. DIR2
  516. DIR3
  517. ..
  518. DIR31
  519.  
  520. However if there is a space before filename, then makexrf will strip it out
  521. (spaces are not valid filename characters).  If makexrf encounters 8 "-"
  522. in a row (like the line underneath the Filename in example above) it will
  523. automatically strip this line out.  If it is less than 8 "-" then it will
  524. not do so, and you will need to add this to the text to strip out.  Valid
  525. filename characters are ascii 33, 35-41, 45, 46, 48-57, 64-90, 95-126.
  526. See page 632 of ms-dos 5.00 manual for the characters that correspond to
  527. these numbers.
  528.  
  529. 5> is the number of category description filenames to convert.
  530.  
  531. lines after 5 are the category filenames to convert.  These must be valid
  532. dos filenames, and can include the paths to them.  Note however that they
  533. will be erased as they are converted, so if they are on the cdrom disk
  534. then copy them over to the current work directory.  These files are the
  535. listings by category (like files.bbs) that hopefully came with your cdrom
  536. disk (broken down into categories like communcations, games, etc).  Each
  537. listing will be treated as a different category.  The three digit category
  538. code is assigned by the filenames location in makexrf.cfg.  So in this
  539. example DIR1 is assigned 001, DIR2 is assigned 002, etc.  If DIR3 had
  540. been the first filename listed then it would have been assigned 001
  541. for a category code.  This category code should match the one given
  542. in your file category menu (for cdcom, category.bbs).  Example:
  543.  
  544.  1 Communications           13 Printer Util         25 Misc program util
  545.  2 Games of all sorts       14 Disk Util            26 Home and personal
  546.  3 Desktop applications     15 File Util            27 Utilities & programs
  547.  4 Word processors          16 Keyboard Util        28 Gif Pictures
  548.  5 C/Assembler              17 Windows              29 BBS Doors and Util.
  549.  6 Pascal And Turbo         18 Cad                  30 ASP Shareware Progr.
  550.  7 Basic And Qbasic         19 Lotus applications   31 Zipping Utilities
  551.  8 Education and helps      20 Misc                 32
  552.  9 Business programs        21 Virus protections    33
  553. 10 Entertainment            22 Database programs    34
  554. 11 Systems Util             23 Graphic programs     35
  555. 12 Screen Util              24 Dos and patches      36
  556.  
  557. so the DIR1 file contain the communications category files, DIR2 file
  558. contains the games files, etc.  So try to arrange them in the proper order
  559. so they will match the category.bbs menu file.  Note in the menu it is not
  560. important if the category code is 1 or 001, cdcom will add the padded 0's
  561. itself if the user just types 1 instead of 001, or 2 instead of 002 when
  562. it goes to list the files by category.
  563.  
  564. Do not put ; comments on the category filename lines.  Also if you copy
  565. files off the cdrom disk insure that the read-only attribute has been
  566. toggled off (use attrib -r *.* to turn it off if it is on).  You will get
  567. error 75's if the read-only attribute is on when it is converting.
  568.  
  569. Once you have created the makexrf.cfg file, then run makexrf convert.
  570. It will read the cfg file and process the file lists.  Once it is done,
  571. and it did not crash in the process, there will be the master listing,
  572. a .ptr file and a file called makexrf.dat.  This will contain the number
  573. that you must put on cdcom.def line 15.
  574.  
  575. If you are having memory problems, refer to the bottom of this doc file.
  576. You can remove the cdrom drivers during the description conversion if
  577. you need to, as they are not needed.  You will need to re-install them
  578. however for when it creates the filename cross-reference listing.  For
  579. any other errors refer to ERRORS.DOC.  If you still cannot solve the
  580. problem then feel free to contact me at the numbers listed in cdcom.doc.
  581.  
  582. You will also need to create a file called cdcom.cat.  This file actually
  583. controls what categories cdcom will recognize.  This file is also covered
  584. in the cdcom.doc file.  For this example cdcom.cat would look like:
  585.  
  586. CDCOM.CAT format
  587.  
  588. # of categories
  589. category code,category description
  590.  
  591. 31
  592. 001,Communications
  593. 002,Games of all sorts
  594. 003,Desktop applications
  595. 004,Word processors
  596. 005,C/Assembler
  597. ..
  598. 031,Zipping Utilities
  599.  
  600. Note that in this file the category number must contain the padded 0's
  601. in front of the category number.  The description can be whatever you
  602. want, but it should match the menu.  I have seen on the disks that
  603. support GAP bbs that cdcom.cat resembles the DIRS file, so you can just
  604. modify that file to the format cdcom uses.  If not what I usually do is
  605. just take the category menu and edit it to make cdcom.cat.  Also on some
  606. of the disks are the DIR and DIRG files, which are the ascii and ansi
  607. category menus, respectively.  Just rename these to category.bbs for
  608. the DIR, and category.scr for the DIRG and your set as far as the
  609. category menu goes.  Note ansi screens only work with the registered
  610. version of cdcom however.
  611.  
  612. I highly strongly no-doubt-in-my-mind recommend to you if this is
  613. confusing then look at some of the examples that are in the CFGFILES.ZIP
  614. file.  This may clear up some of the confusion.  This is not that hard to
  615. do, in fact once you understand it it is quite easy.  If you are still
  616. having problems then give me a call and I'll walk you through it.
  617.  
  618. AN EXAMPLE:
  619.  
  620. Here is a basic example of what you need to do.  I kept the numbers small
  621. just for simplicity sake.  I realize most cdroms have 100 sub-dirs and
  622. 50 file categories, this example will only have 5 directories and 5 file
  623. categories.  The setup is the same, just in the former case there is more
  624. to keep track of.
  625.  
  626. You have a cdrom disk with 5 category sub-directories, each with a files.bbs
  627. in it.  The descriptions are single line.
  628.  
  629. The actual cdrom disk tree structure looks like so:
  630.  
  631. E:\
  632.   \GAMES
  633.   \COMMO
  634.   \UTILS
  635.   \PRINTER
  636.   \GRAPHICS
  637.  
  638. Step 1:
  639.  
  640. copy each files.bbs into the directory you are going to run makexrf from,
  641. re-naming it as you go along.
  642.  
  643. ex:
  644. copy e:\games\files.bbs games.txt
  645. copy e:\commo\files.bbs commo.txt
  646. copy e:\utils\files.bbs utils.txt
  647. copy e:\printer\files.bbs printer.txt
  648. copy e:\graphics\files.bbs graphics.txt
  649.  
  650. the makexrf.cfg for this setup would look like:
  651.  
  652. category.cat  ;description filename
  653. 0             ;single line descriptions
  654. 0             ;sort them forwards
  655. 0             ;no lines to strip out
  656. 5             ;# of description filenames to convert
  657. GAMES.TXT
  658. COMMO.TXT
  659. UTILS.TXT
  660. PRINTER.TXT
  661. GRAPHICS.TXT
  662.  
  663. Remember to arrange these in the order that they appear in your category
  664. menu (category.bbs) if you have one.  Games in this example will be
  665. assigned category code 001, communications assigned category code 002, etc.
  666.  
  667. Step 2:
  668.  
  669. Run
  670. MAKEXRF CONVERT
  671. to convert the files.bbs listings into the master description file.  The
  672. file makexrf.dat will also be created, the value in it must be put
  673. on line 15 of the cdcom.def file for it to function correctly.
  674.  
  675. If step 2 is successful (no errors), proceed to step 3.
  676.  
  677. Step 3:
  678.  
  679. Run
  680. MAKEXRF Drive:
  681. where Drive: is your cdrom drive letter.  This will create the other
  682. work files that cdcom needs.  If no errors, proceed to step 4.
  683.  
  684. Step 4:
  685.  
  686. Now create CDCOM.CAT.  Its format for this example would be:
  687.  
  688. 5
  689. 001,Games and other Fun Stuff
  690. 002,Communications Programs
  691. 003,Utilities
  692. 004,Printer Programs
  693. 005,Graphics Programs
  694.  
  695. Step 5:
  696.  
  697. Create a category.bbs file category menu (if needed) using these same
  698. category codes.
  699.  
  700. You are now done with the makexrf program.  Back up the files that were
  701. just created, and continue with cdcom installation.
  702.  
  703. ----------------------------------------------------------------------------
  704.  
  705. MAKEXRF COMMAND LINE OPTIONS:
  706.  
  707. Makexrf will accept the following command line parameters:
  708.  
  709. SORT    - Sort CDCOM.XRF (or resume after memory problem sorting cdcom.xrf)
  710. CONVERT - Convert Description Listings for CdCom
  711. REPORT  - Updates CDCOM.XRF With File Description Pointers
  712.           and Reports Missing Files
  713. PTR     - Creates Pointer File for Description File
  714. HELP (?)- Command Line Parameter Help Screen
  715. DSORT   - Sort Description File (or resume after memory problem during
  716.           CONVERT)
  717. DRIVE:  - Cdrom Drive Letter [D:, E:, F:, etc] for making cdcom.xrf
  718.  
  719. If you run MAKEXRF CONVERT, the DSORT and PTR functions are
  720. done automatically (and in that order).
  721.  
  722. When you run MAKEXRF DRIVE:, the SORT and REPORT functions are done
  723. automatically (and in that order).
  724.  
  725. On any error resume functions (SORT, DSORT) the other steps after that
  726. are also performed.
  727.  
  728. For the REPORT function makexrf must have access to the description file.
  729.  
  730. Makexrf will also need the makexrf.dat file once it is created in order
  731. to do some of these functions.
  732.  
  733. ----------------------------------------------------------------------------
  734.  
  735. OTHER MISCELLANEOUS INFORMATION:
  736.  
  737. This version of makexrf and cdcom represent my first step in creating
  738. a cdrom door program that can be configured to work with any shareware
  739. type of cdrom disk except pc-sig.  It is not by any means foolproof.  I
  740. have tested it to the best of my ability, but since I do not possess
  741. most of the cdrom disks listed in this doc file I cannot test it
  742. with all configurations.  However based on the information I already
  743. had on most of these disks it should work just fine.  There may still
  744. be some bugs in the program, so feel free to contact me so we can work
  745. them out.
  746.  
  747. Makexrf has been written so that it can easily adapt to most shareware
  748. collection types of cdrom disks, except for the pc-sig disks.  These
  749. need to be handled differently.  You should be able to get most any
  750. disk to work with makexrf & cdcom by following the steps covered here.
  751. The hardest part is getting the description filelists into a format
  752. that makexrf/cdcom can use.  Most of the time this is not a problem
  753. as long as some common sense was used when making these listings.
  754. Pretty much any files.bbs or DIR# files can be converted quite easily
  755. by makexrf for use with cdcom.  I am not familiar with all the file
  756. category description listings in use by all the bbs packages, but most
  757. follow basically the same convention so there should be little difficulty
  758. in getting this door to work with your cdrom disk.
  759.  
  760. The sorts that makexrf will have to do take up quite a bit of memory.
  761. It is advised that you free up as much memory as possible before
  762. running makexrf.  If makexrf does run out of memory, it will error
  763. out with an error 7.  If so, try to free up some more memory and
  764. attempt to resume the sort.  I added command line options to allow
  765. you to do so without having to start from the beginning.  It will
  766. usually bomb when it says "Reading FILENAME.EXT" (ex: Reading
  767. cdcom.xrf or Reading filename.cat) if it is having memory problems.
  768. In this case try to get more memory and restart it using one of the
  769. command line parameters listed below.
  770.  
  771. Included in this zip is a file called RVMX, which will use EGA or VGA
  772. memory starting at A000h as extra memory for DOS.  I was able to
  773. get 736k total of dos memory with it, which gave me enough to do the
  774. sorts without removing my cdrom drivers.  This will disable EGA graphics
  775. however, so if you will be running any programs that use EGA graphics
  776. mode then disable RVMX.  There are also files that can convert expanded
  777. memory to extra memory for dos, but you have to be able to map to
  778. A000h.  Neither the cdrom door nor wildcat use ega graphics so it should
  779. be safe to run this program while your bbs is up.  Between this program
  780. and dos 5.0 allowing to load dos high (on 286's and above) hopefully
  781. this will be enough memory to do these sorts.  I am hoping the next
  782. version of the compiler I use will allow me to use expanded memory for
  783. arrays, which most of you have plenty of, so this will not be a problem
  784. anymore.
  785.  
  786. The cdrom drivers can be removed to do the sorts on either the description
  787. file or the cdcom.xrf file.  They must only be present on the initial
  788. filename index creation, or if you are going to be copying files off the
  789. cdrom.
  790.  
  791. MAKEXRF.PTH and CDCOM.PTH options
  792. ---------------------------------
  793. A new feature has been added that allows you to control which directories
  794. makexrf will read when making the cdcom.xrf file.  Previous versions of
  795. makexrf would just read the entire cdrom disk tree, then add all the
  796. filenames from the disk into cdcom.xrf.  There may be cases however where
  797. you do not want it to do so.  This can be controlled by the file cdcom.pth
  798. and makexrf.pth.  Makexrf.pth is used to exclude directories, cdcom.pth
  799. is used for directories you want read.
  800.  
  801. The format for makexrf.pth and cdcom.pth is the same.  They both are as
  802. follows:
  803.  
  804. # of paths in file
  805. path name
  806.  
  807. ex:
  808. 3
  809.  
  810. \UTILS
  811. \GAMES
  812.  
  813. The blank line signifies the root directory of the cdrom disk.  Note there
  814. are NO trailing backslashes on these paths, and there is NO cdrom drive
  815. letter.
  816.  
  817. There are two different ways to use this new option.  One is to have it
  818. read all the sub-directories on the disk, and just exclude a few of them.
  819. The other way is just to read certain sub-directories that you predefine.
  820.  
  821. Example 1:
  822.  
  823. You want makexrf to read all files from all sub-directories except 2 of them.
  824. Insure there is no cdcom.pth file in the current directory.  Erase it
  825. if so.  Put the names of the directories you want excluded in the makexrf.pth
  826. file.  Run makexrf drive:, where drive: is your cdrom drive letter.  Makexrf
  827. will skip over these directories when creating cdcom.xrf and cdcom.pth.
  828.  
  829. ex: (makexrf.pth)
  830. 2
  831. DIR1
  832. DIR2
  833.  
  834. Example 2:
  835.  
  836. You have a cdrom disk with 95% garbage, but you want the 5% of good stuff.
  837. Create your own cdcom.pth file with the directory names that you want it
  838. to read.  Makexrf will only read these directories when creating cdcom.xrf,
  839. in fact it will not even access the disk at all to check the tree structure,
  840. it will only read the cdcom.pth file.   Makexrf.pth is ignored in this case.
  841.  
  842. ex: (cdcom.pth)
  843. 5
  844. DIR1
  845. ..
  846. DIR5
  847.  
  848. -------------
  849.  
  850. ELS  4/14/92
  851.  
  852. <The END>
  853.